<?php

namespace App\Http\Controllers\Admin;


use App\Models\PostCatlog;
use App\Traits\Post\PostCatlogTrait;
use Illuminate\Http\Request;

class PostCatlogController extends BaseController
{
    use PostCatlogTrait;

    /**
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function getAll(Request $request)
    {
        return ajaxReturn(['items'=>PostCatlog::fetchAll()]);
    }
}
